<template>
  <div class="container">
    <div class="topNav">
      <div class="topItem active">
        <router-link to="/personalrecommend">个人推荐</router-link>
      </div>
      <div class="topItem"><router-link to="/songlist">歌单</router-link></div>
      <div class="topItem">
        <router-link to="/player">主播电台</router-link>
      </div>
      <div class="topItem">排行榜</div>
      <div class="topItem">最新音乐</div>
      <div class="action">
        <div class="input">
          <input type="text" name="" id="" />
        </div>
        <span class="iconfont icon-chilun3"
          ><span @click="UPDATEDIALOGVISIBLE(true)" style="font-size: 12px"
            >登录</span
          ></span
        >
        <span class="iconfont icon-xinfeng"></span>
        <span class="iconfont icon-clothes"></span>
      </div>
    </div>
  </div>
</template>

<script>
import { mapMutations } from "vuex";
export default {
  name: "TopNav",
  methods: {
    ...mapMutations("home", ["UPDATEDIALOGVISIBLE"]),
  },
};
</script>

<style scoped>
.container {
  width: 100%;
  background-color: rgb(245, 245, 245);
}
.topNav {
  width: 1020px;
  padding-left:180px;
  margin: 0 auto;
  height: 50px;
  display: flex;
  align-items: center;
  background-color: rgb(245, 245, 245);
}
.topNav > .topItem {
  padding: 0 20px;
  font-size: 14px;
  color: #666;
}
.topNav > .topItem:hover {
  cursor: pointer;
}
.topNav > .topItem.active {
  color: black;
  font-weight: 600;
}
.action {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.action > .input > input {
  border: none;
  border: 1px solid #333;
  border-radius: 10px;
}
.action > span {
  font-size: 20px;
  margin: 0 10px;
  color: #333;
}
</style>
